package ${package};

import com.lazyframework.commons.support.Convertible;
import com.lazyframework.commons.support.PageInfo;
import com.lazyframework.commons.support.Pageable;
<#assign model="${domainObj + 'Model'}">
<#assign form="${domainObj + 'Form'}">
import ${basePackage}.model.${module}.${model};
import ${basePackage}.web.${module}.form.${form};

import java.util.List;

/**
 * ${comment}
 *
 * Create by lazy in ${.now?string("yyyy/MM/dd")}
 */
public interface ${clsName} extends Convertible {

    /**
     * 新增
     *
     * @param form
     */
    boolean insert(${form} form);

    /**
     * 根据ID删除
     *
     * @param ids
     */
    boolean deleteByIds(String ids);

    /**
     * 修改
     *
     * @param form
     */
    boolean update(${form} form);

    /**
     * 根据ID查询
     *
     * @param id
     * @return
     */
    ${model} findById(String id);

    /**
     * 查询全部
     *
     * @return
     */
    List<${model}> listAll();

    /**
     * 查询分页
     *
     * @param pageable
     * @return
     */
    PageInfo<${model}> listPage(Pageable pageable);

}
